package com.lemox.flowclient.dao;

import org.hibernate.Transaction;

public class Main
{
	public static void main (String[] args)
	{
		FlowDAO dao = new FlowDAO();
		Transaction tr = HibernateSessionFactory.getSession().beginTransaction();
		//Flow flow = dao.findById(1);
		//tr.commit();
		
		
		Flow new_flow = new Flow();
		new_flow.setContent("嘿嘿");
		dao.save(new_flow);
		tr.commit();
		
		//System.out.println(flow.getContent().toString());
	}
}
